/*
 * @Author: master
 * @Date: 2022-03-29 16:55:57
 * @LastEditTime: 2022-04-04 10:27:55
 * @Description: increment
 */
import { defineStore } from 'pinia';
const incrementStore = defineStore('increment', {
  state: () => ({
    count: 0,
  }),
  getters: {
    getCount(state) {
      return state.count;
    },
  },
  actions: {
    increment() {
      this.count++;
    },
  },
});
export default incrementStore;
